/*
 * DownloadTestPanel.h
 *
 *  Created on: 2012-11-3
 *      Author: tutu
 */

#ifndef DOWNLOADTESTPANEL_H_
#define DOWNLOADTESTPANEL_H_

#include <QWidget>
#include <QLineEdit>
#include <QPushButton>
#include "../requester/TDownloadRequester.h"

class DownloadTestPanel : public QWidget
{
	Q_OBJECT

// Member
private:
	QLineEdit *_idEdit;
	QPushButton *_saveButton;
	QPushButton *_saveAsButton;
	TDownloadRequesterPointer _requester;

// Method
public:
	DownloadTestPanel(QWidget *parent = 0);
	virtual ~DownloadTestPanel();

// Slot
private slots:
	void saveButtonClicked();
	void saveAsButtonClicked();
	void downloadFinished(bool error, QString localFilename);

};

#endif /* DOWNLOADTESTPANEL_H_ */
